package edu.lnu.ums.entities.core;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Version;

@Entity
@Inheritance(strategy=InheritanceType.JOINED)
public class AbstractProcess extends AbstractEntity {
    
    @ManyToOne
    @JoinColumn
    protected UMSObject targetEnity;

    @Version
    @Column
    private Integer version;

    public UMSObject getTargetEnity() {
        return targetEnity;
    }

    public void setTargetEnity(UMSObject targetEnity) {
        this.targetEnity = targetEnity;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

}
